package day01;

import java.util.Scanner;

public class test01 {

    public static void main(String[] args) {

        //回文数判断
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();//
        int temp = n;
        int m = 0;

        while (n != 0) {
            int g = n % 10;
            n = n / 10;
            m = m * 10 + g;
        }

        System.out.println(m);
        if (temp == m){
            System.out.println("是回文数");
        } else {
            System.out.println("不是回文数");
        }


    }

}
